package routes

import (
	"gitee.com/pangxianfei/frame/request"
	"gitee.com/pangxianfei/frame/route"

	loginMiddleware "tmaic/login/http/middleware"
)

func Register(router *request.Engine) {
	defer route.PrintingRouteInfo(router)
	//版本路由 v1
	versionV1(router)

}
func versionV1(engine *request.Engine) {
	v1 := route.NewVersion(engine, "")

	v1.NoAuth("", func(login route.Grouper) {
		login.AddGroup("/auth", &authGroup{})
	}, loginMiddleware.AppMiddle())

}
